#ifndef __AS_APP_LAYOUT__H__
#define __AS_APP_LAYOUT__H__

#include "..\base\ASStdLib.h"
#include "..\app\ASAppImgInfo.h"

#ifdef WIN32
#define SCREEN_240_320
#endif

#if defined(SCREEN_240_320)
#define SCR_W 240
#define SCR_H 320
#elif defined(SCREEN_240_400)
#define SCR_W 240
#define SCR_H 400
#elif defined(SCREEN_176_220)
#define SCR_W 176
#define SCR_H 220
#endif

#ifdef SCREEN_176_220
#define ADV_BAR_H 30
#else
#define ADV_BAR_H 40
#endif

#define NORMAL_LIST_ITEM_H IMG_NML_LIST_HL_H
#define SMALL_LIST_ITEM_H IMG_SML_LIST_HL_H
#define LARGE_LIST_ITEM_H IMG_LRG_LIST_HL_H

#define SMALL_TOP_BAR_H IMG_SMALL_TOP_H
#define TOP_BAR_HEIGHT IMG_TOP_H
#define BOTTOM_BAR_HEIGHT IMG_BOTTOM_H
#define SMALL_BOTTOM_H (BOTTOM_BAR_HEIGHT - 10)
#define TITLE_BAR_HEIGHT IMG_TITLE_BAR_H

#define CONTENT_X 3
#define CONTENT_Y (TOP_BAR_HEIGHT + 2)
#define CONTENT_W (SCR_W - CONTENT_X*2)
#define CONTENT_H (SCR_H - CONTENT_Y - BOTTOM_BAR_HEIGHT - 5)

#define TEXT_SK_W 60


#endif//__AS_APP_LAYOUT__H__